﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001361 RID: 4961
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeOffEquipmentCsReq : IMessage<TakeOffEquipmentCsReq>, IMessage, IEquatable<TakeOffEquipmentCsReq>, IDeepCloneable<TakeOffEquipmentCsReq>, IBufferMessage
	{
		// Token: 0x17003E95 RID: 16021
		// (get) Token: 0x0600DE23 RID: 56867 RVA: 0x002529C0 File Offset: 0x00250BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeOffEquipmentCsReq> Parser
		{
			get
			{
				return TakeOffEquipmentCsReq._parser;
			}
		}

		// Token: 0x17003E96 RID: 16022
		// (get) Token: 0x0600DE24 RID: 56868 RVA: 0x002529C7 File Offset: 0x00250BC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeOffEquipmentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E97 RID: 16023
		// (get) Token: 0x0600DE25 RID: 56869 RVA: 0x002529D9 File Offset: 0x00250BD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeOffEquipmentCsReq.Descriptor;
			}
		}

		// Token: 0x0600DE26 RID: 56870 RVA: 0x002529E0 File Offset: 0x00250BE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffEquipmentCsReq()
		{
		}

		// Token: 0x0600DE27 RID: 56871 RVA: 0x002529E8 File Offset: 0x00250BE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffEquipmentCsReq(TakeOffEquipmentCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DE28 RID: 56872 RVA: 0x00252A0D File Offset: 0x00250C0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffEquipmentCsReq Clone()
		{
			return new TakeOffEquipmentCsReq(this);
		}

		// Token: 0x17003E98 RID: 16024
		// (get) Token: 0x0600DE29 RID: 56873 RVA: 0x00252A15 File Offset: 0x00250C15
		// (set) Token: 0x0600DE2A RID: 56874 RVA: 0x00252A1D File Offset: 0x00250C1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600DE2B RID: 56875 RVA: 0x00252A26 File Offset: 0x00250C26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeOffEquipmentCsReq);
		}

		// Token: 0x0600DE2C RID: 56876 RVA: 0x00252A34 File Offset: 0x00250C34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeOffEquipmentCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DE2D RID: 56877 RVA: 0x00252A64 File Offset: 0x00250C64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DE2E RID: 56878 RVA: 0x00252AA3 File Offset: 0x00250CA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DE2F RID: 56879 RVA: 0x00252AAB File Offset: 0x00250CAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DE30 RID: 56880 RVA: 0x00252AB4 File Offset: 0x00250CB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DE31 RID: 56881 RVA: 0x00252AE8 File Offset: 0x00250CE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DE32 RID: 56882 RVA: 0x00252B26 File Offset: 0x00250D26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeOffEquipmentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DE33 RID: 56883 RVA: 0x00252B57 File Offset: 0x00250D57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DE34 RID: 56884 RVA: 0x00252B60 File Offset: 0x00250D60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400581F RID: 22559
		private static readonly MessageParser<TakeOffEquipmentCsReq> _parser = new MessageParser<TakeOffEquipmentCsReq>(() => new TakeOffEquipmentCsReq());

		// Token: 0x04005820 RID: 22560
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005821 RID: 22561
		public const int AvatarIdFieldNumber = 4;

		// Token: 0x04005822 RID: 22562
		private uint avatarId_;
	}
}
